<#include "license.ftl">
<@license/>
<#assign enums = doc.enums>
package ${enums.package}.model.enums;

/** 
<#if enums.enum[0].@description[0]??>
 * ${enums.enum[0].@description} 
</#if>
 * @author Redora
*/
public enum ${enums.name} {

  <#list doc["//element"] as value>
  <#if value.description[0]??>
    /** ${value.description} */
  </#if>
    ${value.@name}<#if value_has_next>,<#else>;</#if>
  </#list>
  
    /** @return Null, or the result of valueOf() */
    public static ${enums.name} valueOfNullSafe(String value) {
        if (value != null) {
            return valueOf(value);
        }
        return null;
    }
}
